package edit;

import skyproc.GRUP;
import skyproc.MajorRecord;

public class SignitureHolder extends AbstractRecordHolder {

	public SignitureHolder(MajorRecord record) {
		super(record);
	}

	@Override
	public String getDescription() {
		return "Signiture";
	}

	@Override
	public Object getValueAt(int index) {
		MajorRecord r = null;
		for(GRUP grup : masters.get(index).getGRUPs().values()) {
			if(grup.contains(record.getForm())) {
				r = grup.get(record.getForm());
			}
		}
		
		return r.getClass().getSimpleName();
	}

	@Override
	public boolean isLeaf() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public Object getChild(Object parent, int index) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getChildCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getIndexOfChild(Object parent, Object child) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Object getHeldObject() {
		// TODO Auto-generated method stub
		return null;
	}
	
}
